package enum_;

public class EnumTest {

    enum Size {
        SMALL, MEDIUM, LARGE
    }

    public static void main(String[] args) {
        Size s = Enum.valueOf(Size.class, "SMALL");
        System.out.println(s.toString());
        System.out.println(Size.MEDIUM.toString());
        System.out.println(Size.LARGE.toString());
    }
}
